
<br>
<form [formGroup]="maintainForm" (ngSubmit)="onSubmit(maintainForm.value)" class="form-horizontal">
  <div class="row">
    <div class="form-group">
      <label class="control-label col-md-4">车辆名称</label>
      <div class="col-md-6 col-xs-11">
        <input readonly formControlName="vehicleName" type="text" class="form-control " id="vehicleName"/>
      </div>
    </div>
    <div class="form-group">
      <label class="control-label col-md-4">车牌号码</label>
      <div class="col-md-6 col-xs-11">
        <input readonly formControlName="licenseNumber" type="text" class="form-control " id="licenseNumber"/>
      </div>
    </div>
    <div class="form-group">
      <label class="control-label col-md-4"><span class="necessary">*</span>&nbsp;开始时间</label>
      <div class="col-md-6 col-xs-11">
        <div class="input-group date" id="startDate">
          <input readonly formControlName="starttimeToString" class="form-control" type="text" id="starttime"/>
          <span class="input-group-addon">
                 <span class="glyphicon glyphicon-calendar"></span>
            </span>
        </div>
      </div>
    </div>
    <div class="form-group">
      <label class="control-label col-md-4"><span class="necessary">*</span>&nbsp;结束时间</label>
      <div class="col-md-6 col-xs-11">
        <div class="input-group date" id="endDate">
          <input readonly formControlName="endtimeToString" class="form-control" type="text" id="endtime"/>
          <span class="input-group-addon">
                 <span class="glyphicon glyphicon-calendar"></span>
            </span>
        </div>
      </div>
    </div>
    <div class="form-group">
      <label class="control-label col-md-4"><span class="necessary">*</span>&nbsp;维护类型</label>
      <div class="col-md-6 col-xs-11">
        <select *ngIf="!disabledFlag" formControlName="maintainType" class="selectpicker form-control selector" style="height: 30px" id="maintainType"
        >
          <option value=''>请选择维护类型</option>
          <option *ngFor="let gType of types" [value]="gType.oid">{{gType.name}}</option>
        </select>
        <input *ngIf="disabledFlag" readonly formControlName="maintainType" class="form-control">
      </div>
    </div>
    <div class="form-group">
      <label class="control-label col-md-4">维护费用</label>
      <div class="col-md-6 col-xs-11">
        <input [readonly]="disabledFlag" formControlName="maintainCost" type="text" class="form-control " id="maintainCost"/>
      </div>
    </div>
    <div class="form-group">
      <label class="control-label col-md-4"><span class="necessary">*</span>&nbsp;维护项目</label>
      <div class="col-md-6 col-xs-11">
        <textarea [readonly]="disabledFlag" formControlName="maintainItem" class="form-control textareastyle" id="maintainItem"></textarea>
      </div>
    </div>
    <div class="form-group">
      <label class="control-label col-md-4">备注</label>
      <div class="col-md-6 col-xs-11">
        <textarea [readonly]="disabledFlag" formControlName="description" class="form-control textareastyle" id="description"></textarea>
      </div>
    </div>
  </div>
  <!--<div class="row">-->
    <!--<div class="col-sm-6 ">-->
      <!--<button [ngClass]="{'hidden':disabledFlag}" id="btn_udgsubmit" type="button" class="btn modalSubmit" type="submit" >提交</button>-->
    <!--</div>-->
    <!--<div class="col-sm-6">-->
      <!--<button [ngClass]="{'hidden':disabledFlag}" type="button" class="simpleclose btn buttonDel" (click)="clearForm('y')">清空</button>-->
    <!--</div>-->
  <!--</div>-->
  <div class="modal-footer">
    <button [ngClass]="{'hidden':disabledFlag}"  class="btn btn-primary" type="submit">提交</button>
    <button [ngClass]="{'hidden':disabledFlag}"  class="btn btn-primary" type="button" (click)="clearForm('y')">清空</button>
  </div>
</form>
